#
# This makefile may not be general enough for all uses - but the procedure
#  is pretty simple, so you may want to set up your own thing.
#

ifeq ("x$(OS)","xWindows_NT")
BISON := bison
else
#I needed to upgrade my version of bison - and this is where it went...
BISON := /usr/local/bin/bison
endif

SKEL := ../skeleton/haxe-skel.m4

all: $(SKEL) calc.y
	mkdir -p bin
	mkdir -p gen
	$(BISON) -S $(SKEL) calc.y -o gen/YYParser.hx
	haxe -main Main -neko bin/Calc.n -cp ..
	haxe -main FlashMain -swf9 bin/Calc.swf -cp .. -swf-header 640:480:24:eeeeff

